package graduationorder.graduationorder.service;

import graduationorder.graduationorder.domain.User;
import graduationorder.graduationorder.error.BusinessException;
import graduationorder.graduationorder.result.CommonReturnType;

public interface UserService {

    public CommonReturnType login(String userName, String password) throws BusinessException;
    public CommonReturnType increaseUser(User addUser, String token)throws BusinessException;
    public CommonReturnType queryUser(String userName, String employeeId,String token)throws BusinessException;
    public CommonReturnType updateUser(User updateUser, String token) throws BusinessException;
    public CommonReturnType deleteUser(Integer userId, String token) throws BusinessException;
    public CommonReturnType modifyPassword(String employeeId, String password, String newPassword) throws BusinessException;
}
